<template>
	<view class="content">
		<view class="hd">
			混合APP开发
		</view>
		<image src="../../static/3.jpg" mode="aspectFit"></image>
		<text>Lorem, ipsum dolor sit amet consectetur adipisicing elit. In autem inventore hic, consequatur facilis
			ratione vero maiores quis, et veniam dignissimos error eos repudiandae soluta aut? Quidem cum nulla
			facilis!</text>
		<button size="mini" type="primary" @click="addToCart">加入购物车</button>
	</view>
</template>

<script>
	import {
		ref,
		toRefs,
		reactive
	} from 'vue';
	export default {
		setup() {
			const addToCart = () => {
					uni.reLaunch({
						url:"/pages/cart/cart?id=1"
					})
			}
			return {
				addToCart
			}
		}
	}
</script>

<style scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	
	text{
		width:90%
	}
</style>
